package io.chenglicun.modules.data.enums;

public enum FacilitiesTypeEnums {

    WORKSHOP("厂房", "workshop"),
    STORE("门店", "store"),
    FREIGHTYARD("货场", "freightYard");

    /**
     * lable
     */
    private String lable;

    /**
     * value
     */
    private String value;

    private FacilitiesTypeEnums(String lableStr, String valueStr) {
        this.lable = lableStr;
        this.value = valueStr;
    }

    public String getLable() {
        return lable;
    }

    public void setLable(String lable) {
        this.lable = lable;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static FacilitiesTypeEnums parseValue(String in) {
        for (FacilitiesTypeEnums dataHouseTypeEnums : FacilitiesTypeEnums.values()) {
            if (dataHouseTypeEnums.getValue().equals(in)) {
                return dataHouseTypeEnums;
            }
        }
        return null;
    }
}
